package com.xianggu.designMode.bridgePattern;

public class BridgePatternDemo {
    public static void main(String[] args) {
        // 创建红色圆形
        Shape redCircle = new Circle(new RedColor());
        redCircle.draw(); // 输出：绘制圆形，应用红色

        // 创建蓝色矩形
        Shape blueRectangle = new Rectangle(new BlueColor());
        blueRectangle.draw(); // 输出：绘制矩形，应用蓝色
    }
}